<%@page contentType="text/html; charset=UTF-8"%>
<!-- Top Bar -->
<nav class="top-bar">
	<ul>
		<!-- Title Area -->
		<li class="name">
			<h1>
				<a href="#"> Services de certificats</a>
			</h1>
		</li>
		<li class="toggle-topbar"><a href="#"></a></li>
	</ul>

	<section>
		<!-- Right Nav Section -->
		<ul class="right">
			<li><a href=".">Accueil</a></li>
			<li class="divider"></li>
			<li class="has-dropdown"><a href="#"> <%
 	if (session.getAttribute("userName") != null)
 		out.print(session.getAttribute("userName"));
 	else
 		out.print("Mon compte");
 %>
			</a>
				<ul class="dropdown">
					<%
						if (session.getAttribute("userName") == null)
							out.print("<li><a href=\"Login\">Se connecter</a></li>");
					%>
					<%
						if (session.getAttribute("userName") == null)
							out.print("<li><a href=\"Register\">S'inscrire</a></li>");
					%>
					<%
						if (session.getAttribute("userName") != null)
							out.print("<li><a href=\"CSR\">Demander un certificat</a></li>");
					%>
					<%
						if (session.getAttribute("userName") != null)
							out.print("<li><a href=\"CSRList\">Afficher le statut d’une requête de certificat en attente</a></li>");
					%>
					<%
						if (session.getAttribute("userName") != null)
							out.print("<li><a href=\"GetCsrGen?filename=ca.cer&action=CACERT\">Télécharger le certificat d’autorité de certification</a></li>");
					%>
					
					<%
						if (session.getAttribute("userName") != null)
							out.print("<li><a href=\"\">Télécharger la liste de révocation des certificats</a></li>");
					%>
					
					<li class="divider"></li>
					<%
						if (session.getAttribute("userName") != null)
							out.print("<li><a href=\"Logout\">Quitter &rarr;</a></li>");
					%>
				</ul></li>
		</ul>
	</section>
</nav>
<!-- End Top Bar -->